/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Renewal.Model
{

    /// <summary>
    ///  setRenewalParam
    /// </summary>
    public class SetRenewalParam
    {

        ///<summary>
        /// 业务线
        ///Required:true
        ///</summary>
        [Required]
        public string AppCode{ get; set; }
        ///<summary>
        /// 产品线
        ///Required:true
        ///</summary>
        [Required]
        public string ServiceCode{ get; set; }
        ///<summary>
        /// 续费时长
        ///</summary>
        public int? TimeSpan{ get; set; }
        ///<summary>
        /// 时间单位(MONTH-月,YEAR-年)
        ///</summary>
        public string TimeUnit{ get; set; }
        ///<summary>
        /// 资源ID列表,英文逗号分隔
        ///Required:true
        ///</summary>
        [Required]
        public string InstanceIds{ get; set; }
        ///<summary>
        /// 自动续费状态(OPEN-开通自动续费,CLOSE-关闭自动续费,MODIFY-修改自动续费)
        ///Required:true
        ///</summary>
        [Required]
        public string AutoRenewStatus{ get; set; }
        ///<summary>
        /// 是否绑定关联资源一并开通自动续费(UNBIND：不绑定，BIND：绑定)
        ///</summary>
        public string AllAutoPay{ get; set; }
    }
}
